﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mForum.Core.Infrastructure.EventAggregator
{
    using mForum.Core.Infrastructure.IoC;

    public class ListenerService : IListenerService
    {
        public IEnumerable<IListenTo<T>> GetListeners<T>() where T : IEvent
        {
            return IoC.GetAllInstances<IListenTo<T>>();
        }
    }
}
